import request from '@/utils/request'

// 获取账户列表
export function getAccountList (params = {}) {
  return request({
    url: '/launch/account/listAll',
    method: 'get',
    params: params
  })
}

// 查询列表数据
export function listTable(query) {
  return request({
    url: '/launch/account/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getDetail(id) {
  return request({
    url: '/launch/account/' + id,
    method: 'get'
  })
}

// 新增参数配置
export function addItem(data) {
  return request({
    url: '/launch/account',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateItem(data) {
  return request({
    url: '/launch/account',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delItem(configId) {
  return request({
    url: '/launch/account/' + configId,
    method: 'delete'
  })
}
